<template>
  <div>
    <el-container>
      <!--头部开始********************************************************-->
      <el-header height="150">
        <!--页眉开始************************-->
        <div style="font-size: 12px;
            margin: -13px -30px 0px -30px;
            background-color: #333;
            active-text-color:#fff">
                <span style="margin-left:200px;line-height: 40px;">
                    <a href="/">玺玛特首页</a><el-divider direction="vertical"></el-divider>
                    <a href="../admin/login">尔玉入口</a><el-divider direction="vertical"></el-divider>
                    <a href="">商家入驻</a><el-divider direction="vertical"></el-divider>
                    <a href="">社会招聘</a><el-divider direction="vertical"></el-divider>
                    <a href="">校园招聘</a><el-divider direction="vertical"></el-divider>
                    <a href="/user/login">个人中心</a><el-divider direction="vertical"></el-divider>
                    <a href="">帮助</a>
                    <a href="../user/reg" style="padding-left: 260px;">注册</a>
                    <a href="../user/login" style="padding-left: 10px;">登录</a>
                </span>
        </div>
        <!--页眉结束************************-->
      </el-header>
      <!--头部结束********************************************************-->

      <!--主体开始********************************************************-->
      <el-main id="bg02">
        <div id="el-login02">
          <h1>欢迎来到玺玛特</h1>
          <img src="/imgs/logo/logo.png" style="width: 60px" alt="">
          <h2>请先登录账号</h2>
          <el-tabs type="border-card"
                   style="width: 400px;
                      margin: 0 auto;
                      background-color:rgba(255,255,255,0.3)">
            <el-tab-pane label="账号登录">
              <!--            label-width设置每个表单项 文本标签的宽度-->
              <el-form style="width: 300px;margin: 20px auto" label-width="60px">
                <el-form-item label="用户名" style="color: black;margin-bottom: 20px">
                  <el-input type="text" placeholder="请输入用户名" ></el-input>
                </el-form-item>
                <el-form-item label="密码" style="color: black">
                  <el-input type="password" placeholder="请输入密码"></el-input>
                </el-form-item>
                <el-form-item>
                  <el-button style="position: relative;right: 30px" type="primary">登录</el-button>
                </el-form-item>
              </el-form>
              <el-a href="" style="text-decoration: none;color: #3a8ee6;text-align: center">还没有账号，去注册</el-a>
            </el-tab-pane>
            <el-tab-pane label="手机号登录">
              <el-form style="width: 300px;margin: 20px auto" label-width="70px">
                <el-form-item label="手机号码" style="color: black;margin-bottom: 20px">
                  <el-input type="text" placeholder="请输入11位手机号"></el-input>
                </el-form-item>
                <el-form-item label="验证码" style="color: black;width: 160px">
                  <el-input type="password" placeholder="请输入验证码"></el-input>
                  <el-button style="display: inline-block" type="primary">获取验证码</el-button>
                </el-form-item>
                <el-form-item>
                  <el-button style="position: relative;right: 30px" type="primary">登录</el-button>
                </el-form-item>
              </el-form>
              <el-a style="text-decoration: none;color: #3a8ee6;text-align: center"><a href="../admin/reg">还没有账号，去登录</a></el-a>
            </el-tab-pane>
          </el-tabs>
        </div>
      </el-main>
      <!--主体结束********************************************************-->
    </el-container>
  </div>
</template>

<style scoped>
#bg02 {
  background-repeat: no-repeat;
  background-image: url("/src/views/user/bg02.png");
  background-size: 70%;
  background-position: center;
  background-color: black;
  margin: 0;
  overflow: hidden;
}

#el-login02 {
  color: #3a8ee6;
  width: 500px;
  height: 575px;
  margin-left: 1050px;
  margin-top: 40px;
}
a{
  text-decoration: none;
  color: #3a8ee6;
}

</style>
<script>
export default {

  data: function () {
    return {
      user: {
        username: "",
        password: ""
      },
      ruleForm: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        gender: '',
        desc: ''
      },

    }
  },
  methods: {
    handleSelect(index, indexPath) {
      console.log(index);
    },


    created: function () {
      /* //发请求获取分类信息
     axios.get("/category/select").then(function (response) {
       v.categoryArr = response.data;
     })
     //发请求获取轮播图信息
     axios.get("/banner/select").then(function (response) {
       v.bannerArr = response.data;
     })*/

    }
  }
}
</script>
